import {Options, Vue} from 'vue-class-component';

@Options({})
export default class PageMixin extends Vue {
    protected currentPage = 1;
    protected pageSize = 20;
    protected recordCount = 0;

    // 每页条数更改
    protected handleSizeChange(val: number) {
        this.pageSize = val;
        (this as any).getData()
    }

    // 页码更改查询
    protected handleCurrentChange(val: number) {
        this.currentPage = val;
        (this as any).getData()
    }
}